﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Enough.Converter
{
    public class MinStringLengthToVisibilityConverter : MinStringLengthToBooleanConverter
    {
        public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return IsMinimumLengthReached(value, parameter) ? Visibility.Visible : Visibility.Collapsed;
        }
    }
}
